package com.riant.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Classname IndexController
 * @Description TODO
 * @Date 2021/7/13 0:04
 * @Created by 张斌
 */
@Controller
public class IndexController {
    @GetMapping({"/","/index"})
    public  String index(){
        System.out.println("访问index页面");
        return "index";
    }

}
